public class ForDemo1 {
    public static void main(String[] args){
        System.out.println("----3次Hello World----");
        for (int i = 0; i<3; i++) {
            System.out.println("Hello World");
        }
            System.out.println("----4次Hello World----");
            for (int i = 0; i<5; i++){
                System.out.println("Hello World");
            }
        System.out.println("----5次Hello World----");
        for (int i = 0; i<=5; i++){
            System.out.println("Hello World");
        }
        System.out.println("----3次Hello World----");
        for (int i = 0; i<5; i+=2){
            System.out.println("Hello World");
        }
    }
}
